home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part2 / 13236 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.2 KB

  1. Path: news.interpath.net!softbase
  2. From: softbase@mercury.interpath.com (Scott McMahan - Softbase Systems)
  3. Newsgroups: comp.lang.c
  4. Subject: Re: key input: "hot" keys via standard libraries (unix c)
  5. Date: 5 Apr 1996 13:24:25 GMT
  6. Organization: Interpath -- Providing Internet access to North Carolina
  7. Message-ID: <4k36u9$mc1@news.interpath.net>
  8. References: <Pine.SUN.3.92.960404211350.28756B-100000@suntan>
  9. NNTP-Posting-Host: mercury.interpath.com
  10. X-Newsreader: TIN [version 1.2 PL2]
  11.  
  12. Carlos Diaz (CS) (cdiaz@eng.usf.edu) wrote:
  13. : meet the requirements ...
  14. :  1) Must never print to the screen the key pressed.
  15. :  2) Must NOT wait for ENTER to be pressed before reading th keystroke.
  16. :  3) IF no key has been pressed, the program can do something else
  17. : (like update a clock with seconds digits) and then go back and wait for
  18. : the key.
  19.  
  20. : Please don't refer me to non standard libraries.
  21.  
  22. Unfortunately, you're not going to be able to do what you want with
  23. the standard library. That functionality is not available.
  24.  
  25. Portability can be achieved by writing routines (or even just macros)
  26. in one source file that hide the access to system-specific functions.
  27. Then you can just rewrite the one source file for each system.
  28.  
  29. Scott
  30.  
  31.